package com.codeZ.FacadePattern;


/**
 * 门面模式类
 *
 * @author codeZhang
 * @Date 2024/8/14 16:31
 */
public class VideoPlayer {

    public void play( String filePath) {
        VideoDecode videoDecode = VideoDecodeFactory.getVideoDecode(filePath);
        System.out.println("视频解码器：" + videoDecode.getClass().getSimpleName());
        videoDecode.decode(filePath);
    }

}
